package cn.iocoder.yudao.module.erp.controller.admin.purchaseplan.vo.purchaseservicedetail;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 服务采购详情新增/修改 Request VO")
@Data
public class PurchaseServiceDetailSaveReqVO {

    @Schema(description = "采购详情ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "15607")
    private Long id;

    @Schema(description = "采购计划ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "31832")
    private Long planId;

    @Schema(description = "采购计划编号(系统自动生成)")
    private String planNo;

    @Schema(description = "采购类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "SERVICE/EQUIPMENT/ENGINEERING/MATERIAL/DIRECT/MINOR")
    @NotEmpty(message = "采购类型不能为空")
    private String purchaseType;

    @Schema(description = "采购内容(详细)")
    private String purchaseContent;

    @Schema(description = "服务期限")
    private String servicePeriod;

    @Schema(description = "服务地点")
    private String serviceLocation;

    @Schema(description = "供应商资质要求")
    private String supplierQualification;

    @Schema(description = "技术评审单")
    private String technicalReview;

    @Schema(description = "现有库存数量")
    private String currentInventory;

    @Schema(description = "单位")
    private String unit;

    @Schema(description = "预估采购数量")
    private Integer estimatedQuantity;

    @Schema(description = "预估单价(元/含税)", example = "23769")
    private BigDecimal estimatedUnitPrice;

    @Schema(description = "合计")
    private BigDecimal totalAmount;

    @Schema(description = "备注", example = "随便")
    private String remark;

}